# nonlocal 关键字
# 用来声明外层的局部变量
# 示例：
def outer():
    x = 10
    def inner():
        nonlocal x
        x = 20
        print("inner:", x)